package dao

import "time"

type ImGroup struct {
	ID             int64     `gorm:"type:int;primaryKey;autoIncrement;not null" json:"id"`
	Name           string    `gorm:"type:varchar(255);not null;comment:'群名字'"`
	OwnerId        int64     `gorm:"type:int;not null;comment:'群主id'"`
	HeadImage      string    `gorm:"type:varchar(255);default:'';comment:'群头像'"`
	HeadImageThumb string    `gorm:"type:varchar(255);default:'';comment:'群头像缩略图'"`
	Notice         string    `gorm:"type:varchar(255);default:'';comment:'群公告'"`
	IsBanned       int8      `gorm:"tinyint;default:0;comment:'是否被封禁0:否 1:是'"`
	Reason         string    `gorm:"type:varchar(255);default:'';comment:'被封禁原因'"`
	Dissolve       int8      `gorm:"type:tinyint(1);default:0;comment:'是否已解散'"`
	CreatedTime    time.Time `gorm:"type:datetime;default:CURRENT_TIMESTAMP;comment:'创建时间'" json:"created_time"`
}
